Page({
  onLoad({ id }) {
    // console.log(id)
    this.getNoticeDetail(id)
  },
  async getNoticeDetail(id) {
    const { code, data: detail } = await wx.http.get(`/announcement/${id}`)
    if (code !== 10000) return wx.utils.toast()
    this.setData({ detail })
  }
})